<?php
/**
 * BQue Description
 * @package core.lib
 * @name Model
 * @filesource Model.php
 * @author Meta Sanjaya
 */

class Model extends Registry
{
    /**
     * @access protected
     * @var Class $db
     */
    protected $db;

    /**
     * @access public
     * @method __construct
     * @param void
     * @return void
     */
    public function __construct()
    {
        $this->db = Database::connect(  );
    }

    /**
     * @access protected
     * @method __set
     * @override
     * @param String $name
     * @param Class $value
     * @return void
     */
    protected function __set($name, $value)
    {
        $this->$name = $value;
    }

    /**
     * @access protected
     * @method __get
     * @override
     * @param String $name
     * @return Class
     */
    protected function __get($name)
    {
        return $this->$name;
    }
}
?>
